package cn.csc.module.order.convert.logistics;

import java.util.*;

import cn.csc.framework.common.pojo.PageResult;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import cn.csc.module.order.controller.admin.logistics.vo.*;
import cn.csc.module.order.dal.dataobject.logistics.OrderLogisticsDO;

/**
 * 订单物流 Convert
 *
 * @author liuchuang
 */
@Mapper
public interface OrderLogisticsConvert {

    OrderLogisticsConvert INSTANCE = Mappers.getMapper(OrderLogisticsConvert.class);

    OrderLogisticsDO convert(OrderLogisticsCreateReqVO bean);

    OrderLogisticsDO convert(OrderLogisticsUpdateReqVO bean);

    OrderLogisticsRespVO convert(OrderLogisticsDO bean);

    List<OrderLogisticsRespVO> convertList(List<OrderLogisticsDO> list);

    PageResult<OrderLogisticsRespVO> convertPage(PageResult<OrderLogisticsDO> page);

    List<OrderLogisticsExcelVO> convertList02(List<OrderLogisticsDO> list);

}
